<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'adminMod.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
<!--框架必需start-->
<script type="text/javascript" src="ui/js/jquery.js"></script>
<script type="text/javascript" src="ui/js/framework.js"></script>
<link href="ui/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" id="skin" prePath="/"/>
<link rel="stylesheet" type="text/css" id="customSkin"/>
<link href="ui/skins/blue/style.css" rel="stylesheet" type="text/css" id="theme" themeColor="blue"/>
<!--框架必需end-->
<script>
	$(function(){
		$("#id").val(top.document.getElementById("frmright").contentWindow.id);
		$("#adminName").val(top.document.getElementById("frmright").contentWindow.adminName);
		$("#email").val(top.document.getElementById("frmright").contentWindow.email);
		$("#phoneNumber").val(top.document.getElementById("frmright").contentWindow.phoneNumber);
		$("#roles").val(top.document.getElementById("frmright").contentWindow.roles);
	});
	function refreshRow(){
	var id = $("#id").val();
		//var val0=$("#adminName").val();
		//var val1=$("#email").val();
		//var val2=$("#phoneNumber").val();
		//var val3=$("#roles").val();
		//top.document.getElementById("frmright").contentWindow.refreshRow(val0,val1,val2,val3);
		top.Dialog.close();
		return true;
	}
	function reVal(){ 
		window.returnValue=1; //父窗口中 answer的值 
		window.close(); 
} 
</script>
<body>
	<div class="box1" whiteBg="true">
	<form id="modForm" action="<%=path%>/adminMod.action" method="post">
	<table class="tableStyle" formMode="transparent">
		<tr>
			<td>编号：</td><td><input type="text" id="id" name="admin.id" readonly="readonly"/></td>
		</tr>
		<tr>
			<td>管理员账号：</td><td><input type="text" id="adminName" name="admin.adminName"/></td>
		</tr>
		<tr>
			<td>电子邮箱：</td><td><input type="text" id="email" name="admin.email"/></td>
		</tr>
		<tr>
			<td>电话号码：</td><td><input type="text" id="phoneNumber" name="admin.phoneNumber"/></td>
		</tr>
		<tr>
			<td>管理权限：</td><td><input type="text" id="roles" name="admin.roles"/></td>
		</tr>
		<tr>
			<td colspan="2">
				<!-- <input type="button" value=" 提 交 " onclick="refreshRow()"/> -->
				<input type="submit" value="提交"/>
				<input type="reset" value=" 重 置 "/>
			</td>
		</tr>
	</table>
	</form>
	</div>
</body>
</html>
